﻿<UserControl x:Class="TFile.CIA.Documentos"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="620">
    <Grid Height="500" Width="620">
        <Label Content="Documentos" FontSize="20" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label1" VerticalAlignment="Top" />
        <DataGrid AutoGenerateColumns="False" Height="172" HorizontalAlignment="Left" Margin="12,66,0,0" Name="grdColetas" VerticalAlignment="Top" Width="596" SelectionChanged="grdColetas_SelectionChanged">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Cod" Binding="{Binding Path=Id}" />
                <DataGridTextColumn Header="Origem" Binding="{Binding Path=Origem.NomeOrigem}" />
                <DataGridTextColumn Header="Destino" Binding="{Binding Path=Origem.Destino.NomeDestino}" />
                <DataGridTextColumn Header="Operadora" Binding="{Binding Path=Origem.Operador.NomeOperador}" />
                <DataGridTextColumn Header="Data Coleta" Binding="{Binding Path=DataColeta, StringFormat={}{0:dd/MM/yyyy}}" />
            </DataGrid.Columns>
        </DataGrid>
        <GroupBox Header="Cadastro de Documento" Height="58" HorizontalAlignment="Left" Margin="12,430,0,0" Name="groupBox1" VerticalAlignment="Top" Width="596">
            <Grid>
                <Label Content="Arquivo" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label2" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="49,2,0,0" Name="txtArquivo" VerticalAlignment="Top" Width="135" GotFocus="txtArquivo_GotFocus"/>
                <TextBox Height="23" HorizontalAlignment="Left" Margin="243,2,0,0" Name="txtDescricao" VerticalAlignment="Top" Width="254" />
                <Label Content="Descrição" Height="28" HorizontalAlignment="Left" Margin="190,6,0,0" Name="label3" VerticalAlignment="Top" />
                <Button Content="Enviar" Height="23" HorizontalAlignment="Left" Margin="503,2,0,0" Name="btnEnviarDocumento" VerticalAlignment="Top" Width="75" Click="btnEnviarDocumento_Click" />
            </Grid>
        </GroupBox>
        <DataGrid AutoGenerateColumns="False" Height="151" HorizontalAlignment="Left" Margin="12,244,0,0" Name="grdDocumentos" VerticalAlignment="Top" Width="596" SelectionChanged="grdDocumentos_SelectionChanged">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Data Cadastro" Binding="{Binding Path=Data, StringFormat={}{0:dd/MM/yyyy}}" />
                <DataGridTextColumn Header="Descrição" Binding="{Binding Path=Descricao}" />
                <DataGridTextColumn Header="Arquivo" Binding="{Binding Path=Arquivo}" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Ver" Height="23" HorizontalAlignment="Right" Margin="0,401,24,0" Name="btnVerDocumento" VerticalAlignment="Top" Width="75" Click="btnVerDocumento_Click" />
        <Button Content="Excluir" Height="23" HorizontalAlignment="Left" Margin="440,401,0,0" Name="btnExcluirDocumento" VerticalAlignment="Top" Width="75" Click="btnExcluirDocumento_Click" />
        <RadioButton Content="Agendadas" Height="16" HorizontalAlignment="Left" Margin="12,44,0,0" Name="rbtAgendadas" VerticalAlignment="Top" Checked="rbtAgendadas_Checked" />
        <RadioButton Content="Canceladas" Height="16" HorizontalAlignment="Left" Margin="106,44,0,0" Name="rbtCanceladas" VerticalAlignment="Top" Checked="rbtCanceladas_Checked" />
        <RadioButton Content="Faturadas" Height="16" HorizontalAlignment="Left" Margin="201,44,0,0" Name="rbtFaturadas" VerticalAlignment="Top" Checked="rbtFaturadas_Checked" />
        <Label Height="28" HorizontalAlignment="Left" Margin="12,401,0,0" Name="lblMensagemCopia" VerticalAlignment="Top" Foreground="Red" />
        <Border Height="500" HorizontalAlignment="Left" Name="border1" VerticalAlignment="Top" Width="620" Style="{StaticResource BordaPadrao}" />
    </Grid>
</UserControl>
